Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.x] Various metrics test improvements to avoid intermittent failures #5611

Merged
merged 6 commits into from
Dec 7, 2022

Conversation

tjquinno
Copy link
Member

@tjquinno tjquinno commented Dec 6, 2022

Resolves #5345 (at least partially)

I reviewed all the metrics tests. I found some places to improve, but I did not identify specific causes for two of the failures Tomas described in the issue. They are certainly not simply "retry" problems.

I will continue looking into those, but I did not want to delay these improvements.

@tjquinno tjquinno self-assigned this Dec 6, 2022
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Dec 6, 2022
@tjquinno tjquinno requested a review from tomas-langer December 6, 2022 23:30
@tjquinno tjquinno changed the title Various metrics test improvements to avoid intermittent failures [4.x] Various metrics test improvements to avoid intermittent failures Dec 6, 2022
@tjquinno tjquinno added the 4.x Version 4.x label Dec 7, 2022
Copy link
Member

@tomas-langer tomas-langer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you maybe change the retry matcher not to throw an interrupted exception, but to call fail(interruptedException) or throw a runtime exception?
I don't think we need to handle InterruptedException in any specific way, so it may be easier to have no checked exception at all (and in the end less code in our tests)

@tjquinno
Copy link
Member Author

tjquinno commented Dec 7, 2022

Changed MatcherWithRetry as Tomas described and adjusted call sites.

tomas-langer
tomas-langer previously approved these changes Dec 7, 2022
@tjquinno tjquinno merged commit 2451e7e into helidon-io:main Dec 7, 2022
@tjquinno tjquinno deleted the metrics-test-race-4.x branch December 7, 2022 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.x Version 4.x OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants